<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="https://code.jquery.com/jquery-3.7.1.min.js"></script>
</head>
<body>
    <div>
        <p>内容啊啊啊啊</p>
    </div>
    <input type="text" value="000">
    <script>
        console.log($("div").html());
        $("div").html("<p>123</p>");
        console.log($("div").text());
        $("div").text("<p>666</p>");
        console.log($("input").val());
        $("input").val("8888");
    </script>
</body>
</html>